local target = "npc"
if ngx ~= nil then
    target = ngx.arg[1]
elseif arg[1] ~= nil then
    target = arg[1]
end

local make_files = {
    charecter = "make_sprite.lua",
    npc = "make_sprite.lua",
    monster = "make_sprite.lua",
    effect = "make_eft.lua",
    deft = "make_sprite.lua",
    picdir = "make_picdir.lua",
    trap = "make_eft.lua"
}

os.execute("/home/wzp/dtools/gip/tools/cmd_agency " .. make_files[target] .. " " .. target)

return target .. " pak is running, please wait..."

